package com.telnetnz.ticketdesk.action.user;

import java.util.List;

import com.rockbb.common.simpleframe.action.BasicAction;
import com.rockbb.common.sso.session.SessionConstants;
import com.telnetnz.ticketdesk.dao.entity.UserEntity;
import com.telnetnz.ticketdesk.service.UserService;


public class UserJsonAction extends BasicAction
{
	public String doGetProjectUsers()
	{
		BasicRequestBean bean = new BasicRequestBean();
		int projectId = bean.getInt("project_id");
		List<UserEntity> users = UserService.getEntitiesByProject(projectId, SessionConstants.USER_ID_ANONYMOUS);
		set_json_obj(users, null);
		return SUCCESS;
	}
}
